package com.clstu.writer_;

import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;

public class BufferedReader_ extends Reader_{
    private Reader_ reader_ = null;

    public BufferedReader_(Reader_ reader_) {
        this.reader_ = reader_;
    }


    @Override
    public void read() {
        reader_.read();//调用传进对象原先的方法
    }

    public void reads(int n){
        for (int i = 0; i < n; i++) {
            read();
            System.out.println(i);
        }
    }

}
